//
//  PlayerSprite.h
//  GameProject
//
//  Created by Blair Trusler on 17/10/2011.
//  Copyright (c) 2011 Blair Trusler. All rights reserved.
//

#import "GameHeader.h"

@interface PlayerSprite : GameCharacter{
    Background *layer;
    
    CCAnimation *walkDownAnim;
    CCAnimation *walkUpAnim;
    CCAnimation *walkLeftAnim;
    CCAnimation *walkRightAnim;
    
    
    SneakyJoystick *joystick;
    SneakyButton *attackButton ;
    SneakyButton *attackButton1;
    float idleTime;
    
//    CGPoint newPosition;
//    CGPoint oldPosition;
    
    BOOL left,right,up,down;
    
    BOOL freeToAttack, freeToJump;  //http://gohighbeta.com/cocos2d/sneakyinput-registers-button-click-twice/

}

@property (nonatomic, retain) CCAnimation *walkDownAnim;
@property (nonatomic, retain) CCAnimation *walkUpAnim;
@property (nonatomic, retain) CCAnimation *walkLeftAnim;
@property (nonatomic, retain) CCAnimation *walkRightAnim;

@property (nonatomic,assign) SneakyJoystick *joystick;
@property (nonatomic,assign) SneakyButton *attackButton;
@property (nonatomic,assign) SneakyButton *attackButton1;


@end
